package cnt.sdk.youdao.model;

import java.io.Serializable;
import java.util.Map;

/**
 * Created by Zale on 4/2/14.
 */
public class Translation extends BaseObject{
    private static final long serialVersionUID = 224564245842323364L;
    private String query;
    private String translation;
    
    private TranslationFromWeb web;


    public String getQuery() {
        return query;
    }

    public void setQuery(String query) {
        this.query = query;
    }

    public String getTranslation() {
        return translation;
    }

    public void setTranslation(String translation) {
        this.translation = translation;
    }

    public TranslationFromWeb getWeb() {
        return web;
    }

    public void setWeb(TranslationFromWeb web) {
        this.web = web;
    }
    public static class TranslationBasic implements Serializable{
		private static final long serialVersionUID = -5884438762684905792L;
    	private String phonetic;
    	private String[] explains;
		public String getPhonetic() {
			return phonetic;
		}
		public String[] getExplains() {
			return explains;
		}
    	
    }
    public static class TranslationFromWeb implements Serializable{
        private static final long serialVersionUID = 2572418549045523995L;
        private Map<String,String[]> translations;

        public Map<String, String[]> getTranslations() {
            return translations;
        }

    }

}

